﻿@model WineStore.Models.Location
@{
    ViewBag.Title = "CreateLocation";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
@section Styles
{
    <style type="text/css">
        .text-box {
            width: 200px;
        }

        .text-box-des {
            width: 402px;
        }
    </style>
}
<!-- Table (TABLE) -->
@section Scripts{
    
    <script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/ckeditor/adapters/jquery.js")" type="text/javascript"></script>
}
<h3 class="tit">Create Location
</h3>
<fieldset>
    <legend>Create Location</legend>
    @using (Html.BeginForm("CreateLocation", "Location", FormMethod.Post, new { enctype = "multipart/form-data" }))
    { 
        @Html.ValidationSummary(true)
        <table class="nostyle">
            <tbody>
               
                 <tr>
                    <td>Description (English):<span style="color: Red">(*)</span>
                    </td>
                    <td>
                        @Html.TextAreaFor(model => model.Description_EN,new { @id="ckDescription_EN"})
                         <script type="text/javascript">
                             CKEDITOR.replace("ckDescription_EN");
                        </script>
                    </td>
                    <td style="color: Red;">
                        @Html.ValidationMessageFor(model => model.Description_EN)
                    </td>
                </tr>
                <tr>
                    <td>Description (German):<span style="color: Red">(*)</span>
                    </td>
                    <td>
                       @Html.TextAreaFor(model => model.Description_GER,new { @id="ckDescription_GER"})
                         <script type="text/javascript">
                             CKEDITOR.replace("ckDescription_GER");
                        </script>
                    </td>
                    <td style="color: Red;">
                        @Html.ValidationMessageFor(model => model.Description_GER)
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="t-right">
                        <input type="submit" value="Create Location" class="submit"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <b>Notes:</b> Fields marked with an asterisk <span style="color: Red">(*)</span>
                        are required.
                    </td>
                </tr>
            </tbody>
        </table>
    }
</fieldset>